import { http, httpGet, httpPost } from '@/utils/http'
import { Event } from '@/championship'

export const playerCheckIn = async (param: {
  matchId: number
  registrationIndex: string
}): Promise<IResData<Event>> => {
  const res = await httpGet<Event>(`/match/player/checkIn`, param)
  return res
}

export const playerGiveUp = async (param: {
  matchId: number
  registrationIndex: string
}): Promise<IResData<Event>> => {
  const res = await httpGet<Event>(`/match/player/giveUp`, param)
  return res
}
